import fetch from '@/utils/fetch'



export function getActivity(id,offset,keyword) {
  return fetch({
    url: '/get/activity',
    method: 'get',
     params: {
     id,
     offset,
     keyword
    }
  })
}


export function deleteActivity(id) {
  return fetch({
    url: '/delete/activity',
    method: 'get',
     params: {
     id
    }
  })
}




export function getActivityById(id) {

  return fetch({
    url: '/get/activity/by',
    method: 'get',
     params: {
     id
    }
  })
}

export function addActivityTag(activity_id,tag) {

  return fetch({
    url: '/add/activity/tag',
    method: 'get',
     params: {
     activity_id,
     tag
    }
  })
}


export function delActivityTag(id) {

  return fetch({
    url: '/delete/activity/tag',
    method: 'get',
     params: {
     id
    }
  })
}

export function addActivity(content,addressInfo) {

  return fetch({
    url: '/add/activity',
    method: 'post',
     data: {
    content,
    addressInfo
    }
  })
}



   
